FROM centos
RUN yum install -y httpd

RUN yum install epel-release -y
RUN rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
RUN yum install -y php56w php56w-cli php56w-mysql php56w-pdo php56w-pecl-memcached
RUN echo "<?php phpinfo(); ?>" > /var/www/html/info.php

ENV PATH /usr/bin/:$PATH
COPY httpd-foreground /usr/bin/
RUN chmod 777 /usr/bin/httpd-foreground

EXPOSE 80
CMD ["httpd-foreground"]
